<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sockets.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sockets.examples.html">范例</a></div>
 <div class="up"><a href="book.sockets.html">Sockets</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sockets.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.af-unix">
    <strong><code>AF_UNIX</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.af-inet">
    <strong><code>AF_INET</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.af-inet6">
    <strong><code>AF_INET6</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Only available if compiled with IPv6 support.
    </span>
   </dd>

  
  
   <dt id="constant.sock-stream">
    <strong><code>SOCK_STREAM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.sock-dgram">
    <strong><code>SOCK_DGRAM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.sock-raw">
    <strong><code>SOCK_RAW</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.sock-seqpacket">
    <strong><code>SOCK_SEQPACKET</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.sock-rdm">
    <strong><code>SOCK_RDM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.msg-oob">
    <strong><code>MSG_OOB</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.msg-waitall">
    <strong><code>MSG_WAITALL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.msg-peek">
    <strong><code>MSG_PEEK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.msg-dontroute">
    <strong><code>MSG_DONTROUTE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.msg-eor">
    <strong><code>MSG_EOR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Not available on Windows platforms.
    </span>
   </dd>

  
  
   <dt id="constant.msg-eof">
    <strong><code>MSG_EOF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Not available on Windows platforms.
    </span>
   </dd>

  
  
   <dt id="constant.so-debug">
    <strong><code>SO_DEBUG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-reuseaddr">
    <strong><code>SO_REUSEADDR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-reuseport">
    <strong><code>SO_REUSEPORT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     This constant is only available in PHP 5.4.10 or later on platforms that
     support the <strong><code>SO_REUSEPORT</code></strong> socket option: this
     includes Mac OS X and FreeBSD, but does not include Linux or Windows.
    </span>
   </dd>

  
  
   <dt id="constant.so-keepalive">
    <strong><code>SO_KEEPALIVE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-dontroute">
    <strong><code>SO_DONTROUTE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-linger">
    <strong><code>SO_LINGER</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-broadcast">
    <strong><code>SO_BROADCAST</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-oobinline">
    <strong><code>SO_OOBINLINE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-sndbuf">
    <strong><code>SO_SNDBUF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-rcvbuf">
    <strong><code>SO_RCVBUF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-sndlowat">
    <strong><code>SO_SNDLOWAT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-rcvlowat">
    <strong><code>SO_RCVLOWAT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-sndtimeo">
    <strong><code>SO_SNDTIMEO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-rcvtimeo">
    <strong><code>SO_RCVTIMEO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-type">
    <strong><code>SO_TYPE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.so-error">
    <strong><code>SO_ERROR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.tcp-nodelay">
    <strong><code>TCP_NODELAY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Used to disable Nagle TCP algorithm.
     Added in PHP 5.2.7. 
    </span>
   </dd>

  
  
   <dt id="constant.sol-socket">
    <strong><code>SOL_SOCKET</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.php-normal-read">
    <strong><code>PHP_NORMAL_READ</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.php-binary-read">
    <strong><code>PHP_BINARY_READ</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.sol-tcp">
    <strong><code>SOL_TCP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.sol-udp">
    <strong><code>SOL_UDP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
 </dl>


 <p class="simpara">
  The following constants are defined under Windows and UNIX-like platforms.
  Each constant is only defined if their equal is available on the platform.
 </p>

 <dl>

  
   <dt id="constant.socket-eintr">
    <strong><code>SOCKET_EINTR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Interrupted system call.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebadf">
    <strong><code>SOCKET_EBADF</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Bad file number.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eacces">
    <strong><code>SOCKET_EACCES</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Permission denied.
    </span>
   </dd>

  
  
   <dt id="constant.socket-efault">
    <strong><code>SOCKET_EFAULT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Bad address.
    </span>
   </dd>

  
  
   <dt id="constant.socket-einval">
    <strong><code>SOCKET_EINVAL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Invalid argument.
    </span>
   </dd>

  
  
   <dt id="constant.socket-emfile">
    <strong><code>SOCKET_EMFILE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Too many open files.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enametoolong">
    <strong><code>SOCKET_ENAMETOOLONG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     File name too long.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotempty">
    <strong><code>SOCKET_ENOTEMPTY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Directory not empty.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eloop">
    <strong><code>SOCKET_ELOOP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Too many symbolic links encountered.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ewouldblock">
    <strong><code>SOCKET_EWOULDBLOCK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Operation would block.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eremote">
    <strong><code>SOCKET_EREMOTE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Object is remote.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eusers">
    <strong><code>SOCKET_EUSERS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Too many users.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotsock">
    <strong><code>SOCKET_ENOTSOCK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Socket operation on non-socket.
    </span>
   </dd>

  
  
   <dt id="constant.socket-edestaddrreq">
    <strong><code>SOCKET_EDESTADDRREQ</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Destination address required.
    </span>
   </dd>

  
  
   <dt id="constant.socket-emsgsize">
    <strong><code>SOCKET_EMSGSIZE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Message too long.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eprototype">
    <strong><code>SOCKET_EPROTOTYPE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Protocol wrong type for socket.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eprotonosupport">
    <strong><code>SOCKET_EPROTONOSUPPORT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Protocol not supported.
    </span>
   </dd>

  
  
   <dt id="constant.socket-esocktnosupport">
    <strong><code>SOCKET_ESOCKTNOSUPPORT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Socket type not supported.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eopnotsupp">
    <strong><code>SOCKET_EOPNOTSUPP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Operation not supported on transport endpoint.
    </span>
   </dd>

  
  
   <dt id="constant.socket-epfnosupport">
    <strong><code>SOCKET_EPFNOSUPPORT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Protocol family not supported.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eafnosupport">
    <strong><code>SOCKET_EAFNOSUPPORT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Address family not supported by protocol.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eaddrnotavail">
    <strong><code>SOCKET_EADDRNOTAVAIL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Cannot assign requested address.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enetdown">
    <strong><code>SOCKET_ENETDOWN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Network is down.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enetunreach">
    <strong><code>SOCKET_ENETUNREACH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Network is unreachable.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enetreset">
    <strong><code>SOCKET_ENETRESET</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Network dropped connection because of reset.
    </span>
   </dd>

  
  
   <dt id="constant.socket-econnaborted">
    <strong><code>SOCKET_ECONNABORTED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Software caused connection abort.
    </span>
   </dd>

  
  
   <dt id="constant.socket-econnreset">
    <strong><code>SOCKET_ECONNRESET</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connection reset by peer.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enobufs">
    <strong><code>SOCKET_ENOBUFS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No buffer space available.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eisconn">
    <strong><code>SOCKET_EISCONN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Transport endpoint is already connected.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotconn">
    <strong><code>SOCKET_ENOTCONN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Transport endpoint is not connected.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eshutdown">
    <strong><code>SOCKET_ESHUTDOWN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Cannot send after transport endpoint shutdown.
    </span>
   </dd>

  
  
   <dt id="constant.socket-etimedout">
    <strong><code>SOCKET_ETIMEDOUT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connection timed out.
    </span>
   </dd>

  
  
   <dt id="constant.socket-econnrefused">
    <strong><code>SOCKET_ECONNREFUSED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Connection refused.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ehostdown">
    <strong><code>SOCKET_EHOSTDOWN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Host is down.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ehostunreach">
    <strong><code>SOCKET_EHOSTUNREACH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No route to host.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ealready">
    <strong><code>SOCKET_EALREADY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Operation already in progress.
    </span>
   </dd>

  
  
   <dt id="constant.socket-einprogress">
    <strong><code>SOCKET_EINPROGRESS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Operation now in progress.
    </span>
   </dd>

  
 </dl>

 
 <p class="simpara">
  The following constants are only defined under Windows.
 </p>

 <dl>

  
  
  
  
  
  
  
  
   <dt id="constant.socket-enoprotoopt">
    <strong><code>SOCKET_ENOPROTOOPT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
  
  
  
  
  
   <dt id="constant.socket-eaddrinuse">
    <strong><code>SOCKET_EADDRINUSE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
  
  
  
  
  
  
  
  
  
  
   <dt id="constant.socket-etoomyrefs">
    <strong><code>SOCKET_ETOOMYREFS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
  
  
  
  
  
  
  
   <dt id="constant.socket-eproclim">
    <strong><code>SOCKET_EPROCLIM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
  
   <dt id="constant.socket-eduot">
    <strong><code>SOCKET_EDUOT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-estale">
    <strong><code>SOCKET_ESTALE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
  
   <dt id="constant.socket-ediscon">
    <strong><code>SOCKET_EDISCON</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-sysnotready">
    <strong><code>SOCKET_SYSNOTREADY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-vernotsupported">
    <strong><code>SOCKET_VERNOTSUPPORTED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-notinitialised">
    <strong><code>SOCKET_NOTINITIALISED</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-host-not-found">
    <strong><code>SOCKET_HOST_NOT_FOUND</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-try-again">
    <strong><code>SOCKET_TRY_AGAIN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-no-recovery">
    <strong><code>SOCKET_NO_RECOVERY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-no-data">
    <strong><code>SOCKET_NO_DATA</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.socket-no-address">
    <strong><code>SOCKET_NO_ADDRESS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
 </dl>


 <p class="simpara">
  The following constants are only available on UNIX-like 
  platforms. Each constant is only defined if their equal is 
  available on the platform.
 </p>

 <dl>

  
   <dt id="constant.socket-eperm">
    <strong><code>SOCKET_EPERM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Operation not permitted.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enoent">
    <strong><code>SOCKET_ENOENT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No such file or directory.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eio">
    <strong><code>SOCKET_EIO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     I/O error.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enxio">
    <strong><code>SOCKET_ENXIO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No such device or address.
    </span>
   </dd>

  
  
   <dt id="constant.socket-e2big">
    <strong><code>SOCKET_E2BIG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Arg list too long.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eagain">
    <strong><code>SOCKET_EAGAIN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Try again.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enomem">
    <strong><code>SOCKET_ENOMEM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Out of memory.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotblk">
    <strong><code>SOCKET_ENOTBLK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Block device required.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebusy">
    <strong><code>SOCKET_EBUSY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Device or resource busy.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eexist">
    <strong><code>SOCKET_EEXIST</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     File exists.
    </span>
   </dd>

  
  
   <dt id="constant.socket-exdev">
    <strong><code>SOCKET_EXDEV</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Cross-device link.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enodev">
    <strong><code>SOCKET_ENODEV</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No such device.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotdir">
    <strong><code>SOCKET_ENOTDIR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Not a directory.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eisdir">
    <strong><code>SOCKET_EISDIR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Is a directory.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enfile">
    <strong><code>SOCKET_ENFILE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     File table overflow.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotty">
    <strong><code>SOCKET_ENOTTY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Not a typewriter.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enospc">
    <strong><code>SOCKET_ENOSPC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No space left on device.
    </span>
   </dd>

  
  
   <dt id="constant.socket-espipe">
    <strong><code>SOCKET_ESPIPE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Illegal seek.
    </span>
   </dd>

  
  
   <dt id="constant.socket-erofs">
    <strong><code>SOCKET_EROFS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Read-only file system.
    </span>
   </dd>

  
  
   <dt id="constant.socket-emlink">
    <strong><code>SOCKET_EMLINK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Too many links.
    </span>
   </dd>

  
  
   <dt id="constant.socket-epipe">
    <strong><code>SOCKET_EPIPE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Broken pipe.
    </span>
   </dd>

  
  
  
   <dt id="constant.socket-enolck">
    <strong><code>SOCKET_ENOLCK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No record locks available.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enosys">
    <strong><code>SOCKET_ENOSYS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Function not implemented.
    </span>
   </dd>

  
  
  
  
  
   <dt id="constant.socket-enomsg">
    <strong><code>SOCKET_ENOMSG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No message of desired type.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eidrm">
    <strong><code>SOCKET_EIDRM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Identifier removed.
    </span>
   </dd>

  
  
   <dt id="constant.socket-echrng">
    <strong><code>SOCKET_ECHRNG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Channel number out of range.
    </span>
   </dd>

  
  
   <dt id="constant.socket-el2nsync">
    <strong><code>SOCKET_EL2NSYNC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Level 2 not synchronized.
    </span>
   </dd>

  
  
   <dt id="constant.socket-el3hlt">
    <strong><code>SOCKET_EL3HLT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Level 3 halted.
    </span>
   </dd>

  
  
   <dt id="constant.socket-el3rst">
    <strong><code>SOCKET_EL3RST</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Level 3 reset.
    </span>
   </dd>

  
  
   <dt id="constant.socket-elnrng">
    <strong><code>SOCKET_ELNRNG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Link number out of range.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eunatch">
    <strong><code>SOCKET_EUNATCH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Protocol driver not attached.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enocsi">
    <strong><code>SOCKET_ENOCSI</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No CSI structure available.
    </span>
   </dd>

  
  
   <dt id="constant.socket-el2hlt">
    <strong><code>SOCKET_EL2HLT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Level 2 halted.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebade">
    <strong><code>SOCKET_EBADE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Invalid exchange.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebadr">
    <strong><code>SOCKET_EBADR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Invalid request descriptor.
    </span>
   </dd>

  
  
   <dt id="constant.socket-exfull">
    <strong><code>SOCKET_EXFULL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Exchange full.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enoano">
    <strong><code>SOCKET_ENOANO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No anode.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebadrqc">
    <strong><code>SOCKET_EBADRQC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Invalid request code.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebadslt">
    <strong><code>SOCKET_EBADSLT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Invalid slot.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enostr">
    <strong><code>SOCKET_ENOSTR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Device not a stream.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enodata">
    <strong><code>SOCKET_ENODATA</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No data available.
    </span>
   </dd>

  
  
   <dt id="constant.socket-etime">
    <strong><code>SOCKET_ETIME</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Timer expired.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enosr">
    <strong><code>SOCKET_ENOSR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Out of streams resources.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enonet">
    <strong><code>SOCKET_ENONET</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Machine is not on the network.
    </span>
   </dd>

  
  
  
   <dt id="constant.socket-enolink">
    <strong><code>SOCKET_ENOLINK</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Link has been severed.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eadv">
    <strong><code>SOCKET_EADV</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Advertise error.
    </span>
   </dd>

  
  
   <dt id="constant.socket-esrmnt">
    <strong><code>SOCKET_ESRMNT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Srmount error.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ecomm">
    <strong><code>SOCKET_ECOMM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Communication error on send.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eproto">
    <strong><code>SOCKET_EPROTO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Protocol error.
    </span>
   </dd>

  
  
   <dt id="constant.socket-emultihop">
    <strong><code>SOCKET_EMULTIHOP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Multihop attempted.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebadmsg">
    <strong><code>SOCKET_EBADMSG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Not a data message.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enotuniq">
    <strong><code>SOCKET_ENOTUNIQ</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Name not unique on network.
    </span>
   </dd>

  
  
   <dt id="constant.socket-ebadfd">
    <strong><code>SOCKET_EBADFD</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     File descriptor in bad state.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eremchg">
    <strong><code>SOCKET_EREMCHG</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Remote address changed.
    </span>
   </dd>

  
  
   <dt id="constant.socket-erestart">
    <strong><code>SOCKET_ERESTART</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Interrupted system call should be restarted.
    </span>
   </dd>

  
  
   <dt id="constant.socket-estrpipe">
    <strong><code>SOCKET_ESTRPIPE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Streams pipe error.
    </span>
   </dd>

  
  
  
  
  
  
  
   <dt id="constant.socket-eprotoopt">
    <strong><code>SOCKET_EPROTOOPT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Protocol not available.
    </span>
   </dd>

  
  
  
  
  
  
  
   <dt id="constant.socket-addrinuse">
    <strong><code>SOCKET_ADDRINUSE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Address already in use.
    </span>
   </dd>

  
  
  
  
  
  
  
  
  
  
  
  
   <dt id="constant.socket-etoomanyrefs">
    <strong><code>SOCKET_ETOOMANYREFS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Too many references: cannot splice.
    </span>
   </dd>

  
  
  
  
  
  
  
  
   <dt id="constant.socket-eisnam">
    <strong><code>SOCKET_EISNAM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Is a named type file.
    </span>
   </dd>

  
  
   <dt id="constant.socket-eremoteio">
    <strong><code>SOCKET_EREMOTEIO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Remote I/O error.
    </span>
   </dd>

  
  
   <dt id="constant.socket-edquot">
    <strong><code>SOCKET_EDQUOT</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Quota exceeded.
    </span>
   </dd>

  
  
   <dt id="constant.socket-enomedium">
    <strong><code>SOCKET_ENOMEDIUM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No medium found.
    </span>
   </dd>

  
  
   <dt id="constant.socket-emediumtype">
    <strong><code>SOCKET_EMEDIUMTYPE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Wrong medium type.
    </span>
   </dd>

  
 </dl>


</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sockets.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sockets.examples.html">范例</a></div>
 <div class="up"><a href="book.sockets.html">Sockets</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
